import wordcloud
txt="life is short,you need python"
w=wordcloud.WordCloud(width=1000,height=700,background_color="white")
w.generate(txt)
w.to_file("ymx.png")